﻿using System;
using System.Windows.Media.Media3D;
using HelixToolkit.Wpf;

namespace GameBoard
{
    public class GridVisual : GridLinesVisual3D, IVisual
    {
        bool _belongsToMoveablePicture = false;
        public bool BelongsToMoveablePicture
        {
            get { return _belongsToMoveablePicture; }
        }
        public void PopulateVisualData(BaseVisualData theData)
        {
            _belongsToMoveablePicture = theData.BelongsToMoveablePicture;
            FactoryID = theData.FactoryID;

            var griddata = theData as GridVisualData;
            Center = griddata.Center;
            Length = griddata.Length;
            MajorDistance = griddata.MajorDistance;
            Material = griddata.Material;
            MinorDistance = griddata.MinorDistance;
            Thickness = griddata.Thickness;
            Width = griddata.Width;
        }

        public ModelVisual3D VisualElement
        {
            get { return this; }
        }




        public Guid FactoryID
        {
            get;
            set;
        }
    }
}